import request from '@/utils/request'

export function deleteRecord(id){
    return request({
        url:`/v1/reward/punishment?id=${id}`,
        method:'DELETE',
    })
}

export function createRecord(data){
    return request({
        url:`/v1/reward/punishment`,
        method:'POST',
        data
    })
}

export function editRecord(params){
    return request({
        url:`/v1/reward/punishment`,
        method:'PUT',
        params
    })
}

export function getPunishment(id){
    return request({
        url:`/v1/reward/punishment/${id}`,
        method:'GET'
    })
}

export function punishments(params){
    return request({
        url:`/v1/reward/punishment`,
        method:'GET',
        params
    })
}